<?php
class Number_m extends MY_Model{
	//public $year_select = array();
	function __construct(){
		parent::__construct();
	}
	function year_select($from,$to){
		$result = array();
		for($i = $from;$i <= $to;$i++){
			//$item = array($i=>$i);
			$result[$i] = $i;
		}
		return $result;
	}
	function month_select($from = 1,$to = 12){
		$result = array();
		for($i = $from;$i <= $to;$i++){
			//$item = array($i=>$i);
			$result[$i] = lang("global:month").$i;
		}
		return $result;
	}
	function day_select($from = 1,$to = 31){
		$result = array();
		for($i = $from;$i <= $to;$i++){
			$result[$i] = $i;
		}
		return $result;
	}
}